window.onload = function(){
    var img = document.getElementsByTagName('img');
    for(i=0;i<img.length;i++){
        img[i].onclick = function(){
            _open(this.alt);
        };
    }
};
function _open(src){
	window.opener.document.getElementById('face').src = window.opener.document.register.facesrc.value= src;
}